package com.example.loginapp.service.impl;

import java.util.List;
import com.example.loginapp.dao.UserDAO;
import com.example.loginapp.model.User;
import com.example.loginapp.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService implements IUserService {
    @Autowired
    private UserDAO userDAO;

    public UserService() {
    }

    public boolean verify(String userName, String password) {
        //System.out.println(2);
        return this.userDAO.verify(userName, password);
    }

    public List<User> findAll() {
        return this.userDAO.findAll();
    }
}
